Class SmtpClientImpl

All Implemented Interfaces:
IPCObject, Process, SmtpClient

public class SmtpClientImpl extends ProcessImpl implements SmtpClient
Information provided by the PKI file:

    \class SmtpClient
    
    \brief SmtpClient handles and manipulates the SMTP client.
    
    \example network().getDevice("PC0").getProcess("SmtpClient")
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • sendMail

      public boolean sendMail(String fromEmailId, String toEmailId, String subject, String contents, String password, String ipAddr)
      Information provided by the PKI file:
      
          \brief This event is emitted when an email is sent.
          
          \param fromEmailId, the sender's email.
          \param toEmailId, the recipient's email.
          \param subject, tthe email subject.
          \param contents, the email contents.
          \param password, the smtp user password.
          \param ipAddr, the outgoing email server address
          
              
      Specified by:
      sendMail in interface SmtpClient
      Parameters:
      fromEmailId - Takes in a parameter of fromEmailId
      toEmailId - Takes in a parameter of toEmailId
      subject - Takes in a parameter of subject
      contents - Takes in a parameter of contents
      password - Takes in a parameter of password
      ipAddr - Takes in a parameter of ipAddr
      Returns:
      boolean Returns a boolean
    • cancelSend

      public void cancelSend()
      Information provided by the PKI file:
      
          \brief Intervene with mail sending
          
              
      Specified by:
      cancelSend in interface SmtpClient